home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000018_anthonypieper@cs.com_Wed Nov 26 10:13:08 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  1KB

  1. Path: newsmaster.cc.columbia.edu!panix!news.maxwell.syr.edu!postnews1.google.com!not-for-mail
  2. From: anthonypieper@cs.com (newexpectuser)
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Quick Question on switch statement and :1, :2
  5. Date: 26 Nov 2003 05:16:06 -0800
  6. Organization: http://groups.google.com
  7. Lines: 13
  8. Message-ID: <f0bb0f39.0311260516.356db920@posting.google.com>
  9. NNTP-Posting-Host: 209.251.39.194
  10. Content-Type: text/plain; charset=ISO-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-Trace: posting.google.com 1069852566 17127 127.0.0.1 (26 Nov 2003 13:16:06 GMT)
  13. X-Complaints-To: groups-abuse@google.com
  14. NNTP-Posting-Date: Wed, 26 Nov 2003 13:16:06 +0000 (UTC)
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14694
  16.  
  17. I am using the following and was wondering if the :1 and :2 are just
  18. labels to clarify code. I am guessing that the "if < \v(input).." says
  19. if the return code of the minput statement is a 1, to exit with a
  20. return code of 1, otherwise check continue ?
  21.  
  22. If that is true, then I think the :1 and :2 are nothing more than
  23. labels and have no affect on the script itself ?
  24.  
  25. minput 30 "password:"
  26. if < \v(input) 1 exit 1 
  27. switch \v(minput) {
  28. :1 echo
  29. :2 echo
  30.